package operation;
import Book.BookList;
public class ExitOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("退出系统...");
        int currentSize=bookList.getUsedSize();
        for(int i=0;i<currentSize;i++){
            bookList.setBook(i,null);
        }
        System.out.println("退出成功：");
        System.exit(0);

    }
}
